-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGrafo.java
54 lines (35 loc) · 1.17 KB
/
Grafo.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/******************************************************************************
* Universidad Simon Bolivar
* Laboratorio de Algoritmos y Estructuras III - CI2693
* Proyecto 1:
* Implementacion de TADs.
* Autores:
* - David Cabeza 13-10191
* - Fabiola Martinez 13-10838
* Profesor:
* - Ivette Carolina Martinez
******************************************************************************/
/**
* @author David Cabeza
* @author Fabiola Martinez
*/
import java.util.*;
public interface Grafo
{
public boolean cargarGrafo(String dirArchivo);
public int numeroDeVertices();
public int numeroDeLados();
public boolean agregarVertice(Vertice v);
public boolean agregarVertice(String id, double peso);
public Vertice obtenerVertice(String id);
public boolean estaVertice(String id);
public boolean estaLado(String u, String v);
public boolean eliminarVertice(String id);
public List<Vertice> vertices();
public List<Lado> lados();
public int grado(String id);
public List<Vertice> adyacentes(String id);
public List<Lado> incidentes(String id);
public Object clone();
public String toString();
}