blob: 11f7ce1f4aceea75ef47712aa9ab0ebce145c534 [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
2 * Copyright 2014 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 */
alshabib339a3d92014-09-26 17:54:32 -070016package org.onlab.onos.store.topology.impl;
17
18import org.onlab.graph.AdjacencyListsGraph;
19import org.onlab.onos.net.topology.TopologyEdge;
20import org.onlab.onos.net.topology.TopologyGraph;
21import org.onlab.onos.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 DefaultTopologyGraph
30 extends AdjacencyListsGraph<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 DefaultTopologyGraph(Set<TopologyVertex> vertexes, Set<TopologyEdge> edges) {
40 super(vertexes, edges);
41 }
42
43}