Concept Graph Visualization¶
The SDK contains some functions for using GraphViz to visualize the concept graph.
edxml.miner.graph.visualize¶
-
edxml.miner.graph.visualize.
graphviz_nodes
(concepts, graph=None)¶ Adds concept instances to a GraphViz directed graph instance and returns it. By default a suitable GraphViz instance is generated, using an instance created by the caller is also possible.
The resulting graph is very detailed, showing every single node. As such, it is intended to be used for small graphs.
Parameters: - concepts (edxml.miner.result.MinedConceptInstanceCollection) – Concept instances
- graph (graphviz.Digraph) – GraphViz Digraph instance
Returns: GraphViz Digraph instance
Return type: graphviz.Digraph
-
edxml.miner.graph.visualize.
graphviz_concepts
(concepts, graph=None)¶ Adds concept instances to a GraphViz directed graph instance and returns it. By default a suitable GraphViz instance is generated, using an instance created by the caller is also possible.
The resulting graph shows the concepts, their attributes and the reasoning paths that connect the attributes within the concept. Attributes that are shared among multiple concept instances are generally not connected, which keeps the graphs simple and readable. An exception is made for ambiguities where it is unclear which concept instance an attribute belongs to. A heuristic is used to decide what to do.
Parameters: - concepts (edxml.miner.result.MinedConceptInstanceCollection) – Concept instances
- graph (graphviz.Digraph) – GraphViz Digraph instance
Returns: GraphViz Digraph instance
Return type: graphviz.Digraph