next up previous contents index
Next: objref Up: Objects Previous: Edge list   Contents   Index

Self linking nodes

If there is any reason for your node to access its objref (eg to find out its GraphID, for example), then you can add the objref to its edge list (say the first item on the edgelist by convention). Then you can refer to things like begin()->ID, begin()->proc etc.

The Graph::Prepare_Neighbours() and Graph::Partition_Objects() methods ignore self-linking edges.

Russell Standish 2016-09-02