BE-GRAPHE.2020-2021/src/main/org/insa/graph/Graph.java
Mikael Capelle cfb59ac0f1 Update.
2018-02-16 15:29:11 +01:00

40 lines
629 B
Java

package org.insa.graph ;
import java.util.ArrayList;
public class Graph {
// Map identifier.
private int mapId;
// Nodes of the graph.
private ArrayList<Node> nodes;
/**
* @param mapId
* @param nodes
*/
public Graph(int mapId, ArrayList<Node> nodes) {
this.mapId = mapId;
this.nodes = nodes;
}
/**
* @return Nodes of this graph.
*/
public ArrayList<Node> getNodes() { return nodes; }
/**
* @return Map ID of this graph.
*/
public int getMapId() { return mapId; }
/**
* @return Return the transpose graph of this graph.
*/
public Graph transpose() {
// TODO:
return null;
}
}