Skip to content

Commit

Permalink
Merge pull request #51 from gabrielvassoler/regular_graph_documentation
Browse files Browse the repository at this point in the history
Documentação base da função de regularidade
  • Loading branch information
richecr committed Oct 10, 2019
2 parents 55c3853 + 500feec commit caf0ab8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions py_graph_t/SimpleGraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit caf0ab8

Please sign in to comment.