From 500feec2b553e9aaacd0261bbfc38be405a8c3d9 Mon Sep 17 00:00:00 2001 From: Gabriel Vassoler Date: Thu, 10 Oct 2019 10:24:08 -0300 Subject: [PATCH] =?UTF-8?q?Documenta=C3=A7=C3=A3o=20base=20da=20fun=C3=A7?= =?UTF-8?q?=C3=A3o=20de=20regularidade?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py_graph_t/SimpleGraph.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/py_graph_t/SimpleGraph.py b/py_graph_t/SimpleGraph.py index 21c07d4..bf06072 100644 --- a/py_graph_t/SimpleGraph.py +++ b/py_graph_t/SimpleGraph.py @@ -375,6 +375,15 @@ def __str__(self): return graph_string def check_regular_graph(self): + """ + Função que verifica a regularidade de um grafo. + + Retorno: + ---------- + True: Se o grafo for regular. + + False: Se o grafo não for regular. + """ valency = [] for i in self.vertices: