Public Member Functions | Public Attributes | List of all members
graph.Graph Class Reference
Inheritance diagram for graph.Graph:
Inheritance graph
[legend]

Public Member Functions

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

Public Attributes

 children
 
 connex
 
 existing_connex
 
 nconnex
 
 q
 

Detailed Description

Definition at line 1 of file graph.py.

Constructor & Destructor Documentation

def graph.Graph.__init__ (   self)

Definition at line 2 of file graph.py.

Member Function Documentation

def graph.Graph.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.

def graph.Graph.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.

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

Definition at line 52 of file graph.py.

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

Definition at line 33 of file graph.py.

def graph.Graph.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.

Member Data Documentation

graph.Graph.children

Definition at line 3 of file graph.py.

graph.Graph.connex

Definition at line 5 of file graph.py.

graph.Graph.existing_connex

Definition at line 7 of file graph.py.

graph.Graph.nconnex

Definition at line 6 of file graph.py.

graph.Graph.q

Definition at line 4 of file graph.py.


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


pinocchio
Author(s):
autogenerated on Tue Jun 1 2021 02:45:05