ragraph.analysis.comparison._delta
#
Delta analysis module.
Module Contents#
Classes#
Basic class for performing a delta analysis on two Graph objects. |
- class ragraph.analysis.comparison._delta.DeltaAnalysis(graph_a: ragraph.graph.Graph, graph_b: ragraph.graph.Graph)#
Basic class for performing a delta analysis on two Graph objects.
- Parameters:
graph_a – Base graph object for comparison.
graph_b – Reference graph object for comparison.
Note
Graphs are compared on leaf node level, where node names are used to determine if nodes are unique or not.
- property graph_a: ragraph.graph.Graph#
Graph A to be compared.
- property graph_b: ragraph.graph.Graph#
Graph B to be compared.
- property unq_leafs_a: List[ragraph.node.Node]#
List of leafs that are only present in graph a.
- property unq_leafs_b: List[ragraph.node.Node]#
List of leafs that are only present in graph b.
- property cm_leafs_ab: List[ragraph.node.Node]#
List of leafs that are present in graph a and b.
- property unq_edges_a: List[ragraph.edge.Edge]#
List of edges that are only present in graph a.
- property unq_edges_b: List[ragraph.edge.Edge]#
List of edges that are only present in graph b.
- property cm_edges_ab: List[ragraph.edge.Edge]#
List of edges that are present in both graphs.
- property node_dict: Dict[str, ragraph.node.Node]#
Dictionary from node name to Node object
- property nodes: List[ragraph.node.Node]#
List of nodes of the delta graph.
- property edges: List[ragraph.edge.Edge]#
List of edges of the delta graph.
- _reset_lazy_props()#
Reset all lazy properties.
- _add_node(n: ragraph.node.Node, kind: str) None #
Add Node to Delta Graph.
- _add_edge(e: ragraph.edge.Edge, kind: str) None #
Add edge to Delta Graph.