tom | e348941 | 2014-08-29 02:30:38 -0700 | [diff] [blame] | 1 | package org.onlab.graph; |
2 | |||||
3 | /** | ||||
4 | * Representation of a graph edge. | ||||
5 | * | ||||
6 | * @param <V> vertex type | ||||
7 | */ | ||||
8 | public interface Edge<V extends Vertex> { | ||||
9 | |||||
10 | /** | ||||
11 | * Returns the edge source vertex. | ||||
12 | * | ||||
13 | * @return source vertex | ||||
14 | */ | ||||
15 | V src(); | ||||
16 | |||||
17 | /** | ||||
18 | * Returns the edge destination vertex. | ||||
19 | * | ||||
20 | * @return destination vertex | ||||
21 | */ | ||||
22 | V dst(); | ||||
23 | |||||
24 | } |