1 25 45 package org.jgrapht; 46 47 import java.util.*; 48 49 50 77 public interface Graph<V, E> 78 { 79 80 82 97 public Set<E> getAllEdges(V sourceVertex, V targetVertex); 98 99 113 public E getEdge(V sourceVertex, V targetVertex); 114 115 122 public EdgeFactory<V, E> getEdgeFactory(); 123 124 157 public E addEdge(V sourceVertex, V targetVertex); 158 159 193 public boolean addEdge(V sourceVertex, V targetVertex, E e); 194 195 212 public boolean addVertex(V v); 213 214 226 public boolean containsEdge(V sourceVertex, V targetVertex); 227 228 238 public boolean containsEdge(E e); 239 240 250 public boolean containsVertex(V v); 251 252 265 public Set<E> edgeSet(); 266 267 280 public Set<E> edgesOf(V vertex); 281 282 298 public boolean removeAllEdges(Collection<? extends E> edges); 299 300 314 public Set<E> removeAllEdges(V sourceVertex, V targetVertex); 315 316 332 public boolean removeAllVertices(Collection<? extends V> vertices); 333 334 344 public E removeEdge(V sourceVertex, V targetVertex); 345 346 361 public boolean removeEdge(E e); 362 363 380 public boolean removeVertex(V v); 381 382 395 public Set<V> vertexSet(); 396 397 406 public V getEdgeSource(E e); 407 408 417 public V getEdgeTarget(E e); 418 419 430 public double getEdgeWeight(E e); 431 } 432 | Popular Tags |