All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gr.james.simplegraph.DirectedEdge Maven / Gradle / Ivy

Go to download

Simple Graph is a graph interface for Java 6 that is designed to expose a very simple API to support working with graphs

The newest version!
package gr.james.simplegraph;

/**
 * Represents an edge of a {@link DirectedGraph}.
 * 

* Memory Complexity: O(1) */ public interface DirectedEdge extends BaseEdge { /** * Returns the source vertex of this edge. *

* Complexity: O(1) * * @return the source vertex of this edge */ int source(); /** * Returns the target vertex of this edge. *

* Complexity: O(1) * * @return the target vertex of this edge */ int target(); /** * {@inheritDoc} * * @param obj {@inheritDoc} * @return {@inheritDoc} */ @Override boolean equals(Object obj); /** * {@inheritDoc} * * @return {@inheritDoc} */ @Override int hashCode(); /** * {@inheritDoc} * * @return {@inheritDoc} */ @Override String toString(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy