Source code: giny/model/Edge.java
1 package giny.model;
2
3 public interface Edge {
4
5 /**
6 * @return the GraphNode corresponding to the source of this GraphEdge.
7 */
8 public Node getSource ();
9
10 /**
11 * @return the GraphNode corresponding to the target of this GraphEdge.
12 */
13 public Node getTarget ();
14
15 /**
16 * @return true if this Edge is a directed edge; false otherwise.
17 */
18 public boolean isDirected ();
19
20 /**
21 * @return the RootGraph that this Node is in
22 */
23 public RootGraph getRootGraph ();
24
25 /**
26 * @return the index in the RootGraph of this Edge
27 */
28 public int getRootGraphIndex ();
29
30 /**
31 * @return The Unique Identifier of this node
32 */
33 public String getIdentifier ();
34
35 /**
36 * <B>There is no check to make sure that this is a unique id</B>
37 * @param new_id The new Identifier for this node
38 */
39 public boolean setIdentifier ( String new_id );
40
41
42
43 } // interface Edge