public class DefaultDirectedGraph extends Object implements DirectedGraph
Constructor and Description |
---|
DefaultDirectedGraph(int nbVertices) |
Modifier and Type | Method and Description |
---|---|
void |
add(DirectedEdge e) |
void |
addEdge(int tail,
int head) |
Iterator<Integer> |
adjacencyList(int v) |
int |
nbVertices() |
public int nbVertices()
nbVertices
in interface DirectedGraph
public Iterator<Integer> adjacencyList(int v)
adjacencyList
in interface DirectedGraph
public void add(DirectedEdge e)
add
in interface DirectedGraph
public void addEdge(int tail, int head)
addEdge
in interface DirectedGraph
Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.