pinocchio  UNKNOWN
Graph Class Reference
Inheritance diagram for Graph:
[legend]
Collaboration diagram for Graph:
[legend]

Public Member Functions

def __init__ (self)
 
def add_node (self, q=None, new_connex=False)
 
def add_edge (self, first, second, orientation=0)
 
def new_connex (self, idx)
 
def rename_connex (self, past, future)
 
def connexIndexes (self, connex)
 

Public Attributes

 children
 
 q
 
 connex
 
 nconnex
 
 existing_connex
 

Detailed Description

Definition at line 1 of file graph.py.

Member Function Documentation

def add_edge (   self,
  first,
  second,
  orientation = 0 
)
Add edge from first to second. Also add edge from second to first if orientation
is null.

Definition at line 22 of file graph.py.

References Graph.children.

def add_node (   self,
  q = None,
  new_connex = False 
)
Create the memory to store a new edge. Initialize all components to None.
Create an empty list of children.

Definition at line 9 of file graph.py.

References Graph.children, and Graph.new_connex().

def connexIndexes (   self,
  connex 
)
Return the list of all node indexes belonging to connex component <connex>.

Definition at line 52 of file graph.py.

References Graph.connex.

def new_connex (   self,
  idx 
)
Create a new connex component for node <idx>

Definition at line 33 of file graph.py.

References Graph.connex, and Graph.nconnex.

Referenced by Graph.add_node().

def rename_connex (   self,
  past,
  future 
)
Change the index of the all the nodes belonging to a connex component.
Useful when merging two connex components.

Definition at line 41 of file graph.py.

References Graph.connex.


The documentation for this class was generated from the following file: