blob: 22857e46854e34080afc2afa51dcbf051160d675 [file] [log] [blame]
Brian O'Connor7cbbbb72016-04-09 02:13:23 -07001/*
2 * Copyright 2015-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Nikhil Cheerlad6734f62015-07-21 10:41:44 -070016package org.onosproject.flowanalyzer;
17
18import org.onlab.graph.MutableAdjacencyListsGraph;
19import org.onosproject.net.topology.TopologyEdge;
20import org.onosproject.net.topology.TopologyGraph;
21import org.onosproject.net.topology.TopologyVertex;
22
23import java.util.Set;
24
25/**
26 * Default implementation of an immutable topology graph based on a generic
27 * implementation of adjacency lists graph.
28 */
29public class DefaultMutableTopologyGraph
30 extends MutableAdjacencyListsGraph<TopologyVertex, TopologyEdge>
31 implements TopologyGraph {
32
33 /**
34 * Creates a topology graph comprising of the specified vertexes and edges.
35 *
36 * @param vertexes set of graph vertexes
37 * @param edges set of graph edges
38 */
39 public DefaultMutableTopologyGraph(Set<TopologyVertex> vertexes, Set<TopologyEdge> edges) {
40 super(vertexes, edges);
41 }
42
43}