graph.core.Graph Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of astra-compiler Show documentation
Show all versions of astra-compiler Show documentation
Core compiler artifact for the ASTRA Language
package graph.core;
import graph.util.List;
public interface Graph {
public Vertex[] endVertices(Edge v);
public Vertex opposite(Vertex v, Edge e);
public boolean areAdjacent(Vertex v, Vertex w);
public V replace(Vertex v, V x);
public E replace(Edge e, E x);
public Vertex insertVertex(V o);
public Edge insertEdge(Vertex v, Vertex w, E o);
public V removeVertex(Vertex v);
public E removeEdge(Edge e);
public List> incidentEdges(Vertex v);
public List> vertices();
public List> edges();
}