blob: 13f7b5deebfbe35428bb2988af5d2f9ed611460d [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07003 *
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 */
Thomas Vachuska930a8ee2015-08-04 18:49:36 -070016package org.onosproject.common;
alshabib339a3d92014-09-26 17:54:32 -070017
18import org.onlab.graph.AdjacencyListsGraph;
Brian O'Connorabafb502014-12-02 22:26:20 -080019import org.onosproject.net.topology.TopologyEdge;
20import org.onosproject.net.topology.TopologyGraph;
21import org.onosproject.net.topology.TopologyVertex;
alshabib339a3d92014-09-26 17:54:32 -070022
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}