Note
This module is for abstraction. It needs to be overrided. See module yotsuba.lib.kotoba for example.
Data Structures for Mathematical Graph for Yotsuba 3
Data structure representing a graph.
L.append(object) – append object to end
L.count(value) -> integer – return number of occurrences of value
L.extend(iterable) – extend list by appending elements from the iterable
Get the list of all vertices of the other graphs that connecting to this graph. (Make a connected-or-not-connected subgraph from it.)
L.index(value, [start, [stop]]) -> integer – return first index of value. Raises ValueError if the value is not present.
L.insert(index, object) – insert object before index
Check if the object is an instance of this class.
L.pop([index]) -> item – remove and return item at index (default last). Raises IndexError if list is empty or index is out of range.
L.remove(value) – remove first occurrence of value. Raises ValueError if the value is not present.
L.reverse() – reverse IN PLACE
L.sort(cmp=None, key=None, reverse=False) – stable sort IN PLACE; cmp(x, y) -> -1, 0, 1
Data structure representing a vertex in a graph.
GUID of the vertex
Secondary constructor for lazy instantiation or resetting.
See the constructor for the usage.
Check if the object is an instance of this class.
Check if vertex (required, graph.Vertex-based object) is connected with this node.
Make an edge to the another vertex (required, graph.Vertex-based object).