Interface EdgeModel

  • All Known Subinterfaces:
    MutableEdgeModel
    All Known Implementing Classes:
    ActorGraphModel.LinkModel, BasicModularGraphModel.BasicEdgeModel, FSMGraphModel.ArcModel, OntologyGraphModel.RelationModel

    public interface EdgeModel
    An edge is an object that is contained by a graph and connects nodes. An edge has a "head" and a "tail" as if it was directed, but also has a method isDirected() that says whether or not the edge should be treated as directed (e.g. should there be an arrow drawn on the head). An edge has a semantic object that is its semantic equivalent in the application and may have a visual object which is its syntactic representation in the user interface.
    Version:
    $Id$
    Author:
    Michael Shilman
    Pt.AcceptedRating:
    Red
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object getHead​(java.lang.Object edge)
      Return the node at the head of this edge.
      java.lang.Object getTail​(java.lang.Object edge)
      Return the node at the tail of this edge.
      boolean isDirected​(java.lang.Object edge)
      Return whether or not this edge is directed.
    • Method Detail

      • getHead

        java.lang.Object getHead​(java.lang.Object edge)
        Return the node at the head of this edge.
      • getTail

        java.lang.Object getTail​(java.lang.Object edge)
        Return the node at the tail of this edge.
      • isDirected

        boolean isDirected​(java.lang.Object edge)
        Return whether or not this edge is directed.