/adjacencyMatrixGraph

Create a adjacency matrix and plot the graph

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Matriz de adjacência - Grafo

logo

Exercício para a matéria de Teoria dos Grafos ministrada pelo IESB - Brasília.


The application receive an adjacency matrix and plots a graph displaying the corresponding graph.

It was used a implementation of matplotlib to plot the image.

Bellow we can see a simple matrix and the graph

[1, 1, 0, 0, 1, 0]
[1, 0, 1, 0, 1, 0]
[0, 1, 0, 1, 0, 0]
[0, 0, 1, 0, 1, 1]
[1, 1, 0, 1, 0, 0]
[0, 0, 0, 1, 0, 0]

image