summaryrefslogtreecommitdiffstats
path: root/core/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/slitopologyutils/graph/Edge.java
blob: cf96e7d0c392a2891cf44592fa6fb3f21c255ab0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package org.onap.ccsdk.sli.core.slipluginutils.slitopologyutils.graph;

public interface Edge<V extends Vertex> {

    /**
     * Returns the edge source vertex.
     *
     * @return source vertex
     */
    V src();

    /**
     * Returns the edge destination vertex.
     *
     * @return destination vertex
     */
    V dst();

    /**
     * Returns true if edge is permissable
     */
    default boolean isPermitted(V src, V dst){
        return true;
    }
}