Brian O'Connor | 7cbbbb7 | 2016-04-09 02:13:23 -0700 | [diff] [blame] | 1 | /* |
| 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 Cheerla | d6734f6 | 2015-07-21 10:41:44 -0700 | [diff] [blame] | 16 | package org.onosproject.flowanalyzer; |
| 17 | |
| 18 | import org.onlab.graph.MutableAdjacencyListsGraph; |
| 19 | import org.onosproject.net.topology.TopologyEdge; |
| 20 | import org.onosproject.net.topology.TopologyGraph; |
| 21 | import org.onosproject.net.topology.TopologyVertex; |
| 22 | |
| 23 | import java.util.Set; |
| 24 | |
| 25 | /** |
| 26 | * Default implementation of an immutable topology graph based on a generic |
| 27 | * implementation of adjacency lists graph. |
| 28 | */ |
| 29 | public 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 | } |