digraphs
Class DigraphNodeLabeled

java.lang.Object
  extended by digraphs.DigraphNode
      extended by digraphs.DigraphNodeLabeled

public class DigraphNodeLabeled
extends DigraphNode

A class for representing nodes in directed graphs that have strings as labels for the nodes.

Author:
James A. Mason

Constructor Summary
DigraphNodeLabeled(java.lang.String label)
          Initializes a new DigraphNodeLabeled with a given label and default estimated number of in-edges and of out-edges per node.
 
Method Summary
 java.lang.String getLabel()
          Returns the current label of the node.
 void setLabel(java.lang.String newLabel)
          Changes the label of the node to a given new value.
 
Methods inherited from class digraphs.DigraphNode
addInEdge, addOutEdge, ancestors, ancestors, connectedNodes, connectedNodes, descendants, descendants, getInEdges, getOutEdges, inDegree, neighboursIn, neighboursOut, outDegree, removeInEdge, removeOutEdge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigraphNodeLabeled

public DigraphNodeLabeled(java.lang.String label)
Initializes a new DigraphNodeLabeled with a given label and default estimated number of in-edges and of out-edges per node.

Method Detail

getLabel

public java.lang.String getLabel()
Returns the current label of the node.


setLabel

public void setLabel(java.lang.String newLabel)
Changes the label of the node to a given new value.