Package ancheta.grafo
Class Grafo<K,T>
- java.lang.Object
-
- ancheta.grafo.Grafo<K,T>
-
public class Grafo<K,T> extends java.lang.Object implements IGrafo<T,K>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Grafo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
agregar(K llave, T elemento)
int
getIdActual()
TablaHashG<K,IVertice<T>,T>
getLosVertices()
int
getNumeroElementos()
java.util.Iterator<IVertice<T>>
iterator()
-
-
-
Method Detail
-
getLosVertices
public TablaHashG<K,IVertice<T>,T> getLosVertices()
- Returns:
-
getIdActual
public int getIdActual()
- Returns:
-
getNumeroElementos
public int getNumeroElementos()
-
iterator
public java.util.Iterator<IVertice<T>> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<K>
-
agregar
public void agregar(K llave, T elemento) throws ElementoRepetidoException
- Specified by:
agregar
in interfaceIGrafo<K,T>
- Throws:
ElementoRepetidoException
-
-