Class AbstractGraphElement

java.lang.Object
org.graffiti.attributes.AbstractAttributable
org.graffiti.graph.AbstractGraphElement
All Implemented Interfaces:
Comparable<GraphElement>, Attributable, GraphElement
Direct Known Subclasses:
AbstractEdge, AbstractNode

public abstract class AbstractGraphElement
extends AbstractAttributable
implements GraphElement
GraphElements are Attributables which know the graph they belong to. This class provides the functionality for accessing the graph.
See Also:
AbstractNode, AbstractEdge, Node, Edge
  • Constructor Details

    • AbstractGraphElement

      public AbstractGraphElement()
      Constructs a new AbstrctGraphElement.
    • AbstractGraphElement

      public AbstractGraphElement​(CollectionAttribute coll)
      Constructs a new AbstrctGraphElement.
      Parameters:
      coll - the CollectionAttribute of the new AbstractGraphElement instance.
    • AbstractGraphElement

      public AbstractGraphElement​(Graph graph, CollectionAttribute coll)
      Constructs a new AbstrctGraphElement. Sets the graph of the current AbstrctGraphElement.
      Parameters:
      graph - the graph the AbstrctGraphElement belongs to.
      coll - the CollectionAttribute of the new AbstractGraphElement instance.
    • AbstractGraphElement

      public AbstractGraphElement​(Graph graph)
      Constructs a new AbstrctGraphElement. Sets the graph of the current AbstrctGraphElement.
      Parameters:
      graph - the graph the AbstrctGraphElement belongs to.
  • Method Details