Class AbstractGraph

    • Field Detail

      • id

        protected final NodeID id
    • Constructor Detail

      • AbstractGraph

        public AbstractGraph()
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • removeNodeFromCollection

        protected <T> T removeNodeFromCollection​(java.util.Collection<T> collection,
                                                 T object)
      • getEdges

        protected <T extends AbstractGraphEdge<?,​?>> java.util.Collection<T> getEdges​(AbstractGraphNode source,
                                                                                            AbstractGraphNode target,
                                                                                            java.util.Collection<T> collection)
        Returns the edges from source to target, contained in the given collection
        Type Parameters:
        T - The type of edges
        Parameters:
        source - the source node
        target - the target node
        collection - the collection of edges to search through
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • graphElementAdded

        public void graphElementAdded​(java.lang.Object element)
      • graphElementRemoved

        public void graphElementRemoved​(java.lang.Object element)
      • graphElementChanged

        public void graphElementChanged​(java.lang.Object element)