Compare graphs to determine if they represent the same storage configuration.
Bases: object
Compare two storage graphs.
Whether these graphs represent equivalent storage configurations.
Parameters: |
|
---|---|
Returns: | True if the graphs are equivalent, otherwise False |
Return type: | bool |
Bases: object
Find the differences between two graphs, if they exist.
Find the edge differences between graph1 and graph2 as a pair of graphs.
Parameters: |
|
---|---|
Returns: | a pair of graphs, representing graph1 - graph2 and vice-versa |
Return type: | tuple of DiGraph |
Return a graph that shows the full difference between graph1 and graph2.
Parameters: |
|
---|---|
Returns: | an annotated graph composed of graph1 and graph2 |
Return type: | DiGraph |
Return a graph of the left difference between graph1 and graph2.
Parameters: |
|
---|---|
Returns: | graph1 with removed nodes marked |
Return type: | DiGraph |
Find the differences between graph1 and graph2 as a pair of graphs.
Parameters: |
|
---|---|
Returns: | a pair of graphs, representing graph1 - graph2 and vice-versa |
Return type: | tuple of DiGraph |
Return a graph of the right difference between graph1 and graph2.
Parameters: |
|
---|---|
Returns: | graph2 with added nodes marked |
Return type: | DiGraph |
Bases: object
Class with functions to match graph elements based on selected keys.
Note that the keys must be at the top-level.
Get match function suitable for use with is_isomorphism method.
Returns: | a function that checks the equality of two graph elements |
---|---|
Return type: | ele * ele -> bool |
Returns a function that checks equality of two graph elements.
Parameters: |
|
---|---|
Types keys: | list of str |
Returns: | a function that compares two graph elements |
Return type: | ele * ele -> bool |