com.ibm.wala.util.graph.Graph Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.ibm.wala.util Show documentation
Show all versions of com.ibm.wala.util Show documentation
T. J. Watson Libraries for Analysis
The newest version!
/*
* Copyright (c) 2002 - 2006 IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*/
package com.ibm.wala.util.graph;
/**
* Basic interface for a directed graph.
*
* We choose to define a {@link Graph} as a composition of a {@link NodeManager} and an {@link
* EdgeManager}, which track nodes and edges, respectively. This way, in many cases we can compose
* separate {@link NodeManager} and {@link EdgeManager} implementations to create {@link Graph}
* implementations, using delegation.
*
* @param the type of nodes in this graph.
*/
public interface Graph extends NodeManager, EdgeManager {
/**
* remove a node and all its incident edges
*
* @throws UnsupportedOperationException if the graph implementation does not allow removal
*/
void removeNodeAndEdges(T n) throws UnsupportedOperationException;
}