-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMatAdj.h
More file actions
29 lines (24 loc) · 734 Bytes
/
MatAdj.h
File metadata and controls
29 lines (24 loc) · 734 Bytes
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
#include <stdio.h>
#include <stdlib.h>
#define MAX 150
/*struct node{
int pais[200];
int qtdPais;
int valor;
} Node;*/
/*struct dependencia{
int numero_tarefa;
dependencia *prox_dependencia;
} Dependencia;*/
typedef struct tarefa{
int quantidade_dependencias;
int status; // 0: item não finalizado 1: item finalizado
int dependencias[MAX];
//Dependencia *lista_dependências;
} Tarefa;
void InitMat(Tarefa tarefas[], int qtdTarefas);
void Remove (int (*mat[150][150]), int v1, int v2);
void Connect(Tarefa tarefas[], int pai, int filho);
void Print (Tarefa tarefas[], int qtdTarefas);
void InitVisitados(int visitados[]);
int Check_Cycle(int visitados[],Tarefa tarefas[], int atual);