Interface Vertex.Edges

  • All Known Implementing Classes:
    VertexImpl.EdgesImpl
    Enclosing interface:
    Vertex

    public static interface Vertex.Edges
    edges of this vertex
    Author:
    markr
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean addEdge​(Edge edge)
      Add edge, do not invoke when parsing networks, this connection is auto-populated before the assignment starts based on the edge and its two vertices that have been registered.
      Set<Edge> getEdges()
      Returns a Set of Edge objects
      boolean removeEdge​(Edge edge)
      Remove edge
    • Method Detail

      • addEdge

        boolean addEdge​(Edge edge)
        Add edge, do not invoke when parsing networks, this connection is auto-populated before the assignment starts based on the edge and its two vertices that have been registered.
        Parameters:
        edge - Edge to be added
        Returns:
        true when added, false when already present (and not added)
      • removeEdge

        boolean removeEdge​(Edge edge)
        Remove edge
        Parameters:
        edge - Edge to be removed
        Returns:
        true when removed, false when not present (and not removed)
      • getEdges

        Set<Edge> getEdges()
        Returns a Set of Edge objects
        Returns:
        Set of Edge objects