net.sf.javagimmicks.graph.Graph Maven / Gradle / Ivy
package net.sf.javagimmicks.graph;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
public interface Graph>
{
public Set vertexSet();
public Map> edgeMap();
public boolean containsVertex(V vertex);
public boolean addVertex(V vertex);
public Set removeVertex(V vertex);
public Set edgesOf(V source);
public Set targetsOf(V source);
public boolean isConnected(V source, V target);
public E getEdge(V source, V target);
public Set getEdges(V source, V target);
public E addEdge(V source, V target);
public Set addEdges(V source, Collection extends V> targets);
public E removeEdge(V source, V target);
public Set removeEdges(V source, V target);
public Set removeEdges(V source, Collection extends V> targets);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy