コード例 #1
0
ファイル: graph.py プロジェクト: LumaPictures/rez
 def __init__(self):
     """
     Initialize a graph.
     """
     common.__init__(self)
     labeling.__init__(self)
     self.node_neighbors = {}     # Pairing: Node -> Neighbors
コード例 #2
0
ファイル: graph.py プロジェクト: oktomus/rez3
 def __init__(self):
     """
     Initialize a graph.
     """
     common.__init__(self)
     labeling.__init__(self)
     self.node_neighbors = {}  # Pairing: Node -> Neighbors
コード例 #3
0
ファイル: digraph.py プロジェクト: LumaPictures/rez
 def __init__(self):
     """
     Initialize a digraph.
     """
     common.__init__(self)
     labeling.__init__(self)
     self.node_neighbors = {}     # Pairing: Node -> Neighbors
     self.node_incidence = {}     # Pairing: Node -> Incident nodes
コード例 #4
0
ファイル: hypergraph.py プロジェクト: LumaPictures/rez
 def __init__(self):
     """
     Initialize a hypergraph.
     """
     common.__init__(self)
     labeling.__init__(self)
     self.node_links = {}    # Pairing: Node -> Hyperedge
     self.edge_links = {}     # Pairing: Hyperedge -> Node
     self.graph = graph()    # Ordinary graph
コード例 #5
0
 def __init__(self):
     """
     Initialize a hypergraph.
     """
     common.__init__(self)
     labeling.__init__(self)
     self.node_links = {}  # Pairing: Node -> Hyperedge
     self.edge_links = {}  # Pairing: Hyperedge -> Node
     self.graph = graph()  # Ordinary graph