An extension to the graph base which implements the idea of hierarchy
keeping a weight relationship based on the added edges. Edges are
directional from X to y.
You must add nodes with the property "rootnode" to know
where the hierarchy begins!
|
|
|
getRootNodes(self)
Get all the node id's in this graph which are weight 0 (meaning they
have no parents)... |
source code
|
|
|
getNodeWeights(self)
Calculate the node weights for the given nodes in the hierarchical
graph based on the added "rootnode" nodes. |
source code
|
|
|
|
Inherited from Graph :
addEdge ,
addNode ,
delEdge ,
delNode ,
getClusterGraphs ,
getEdge ,
getEdgeInfo ,
getEdges ,
getMeta ,
getNode ,
getNodeInfo ,
getNodeProps ,
getNodes ,
getRefsFrom ,
getRefsTo ,
hasNode ,
pathSearch ,
pathSearchFrom ,
pathSearchOne ,
setEdgeInfo ,
setMeta ,
setNodeInfo ,
wipeGraph
|