HelloGraph package

Submodules

HelloGraph.challenge module

class HelloGraph.challenge.HelloGraphChallenge[source]

Bases: challenges.challenge.Challenge

Given: Two nodes and a list of edges denoting a path Return: Graph between the nodes and it’s weight

build()[source]
calc()[source]
expect = '\n 2->3->4\n 14\n '
format()[source]
sample = '\n 2\n 4\n 1->2:2\n 2->3:4\n 3->4:10\n 4->5:8\n 5->6:1\n '

HelloGraph.test module

class HelloGraph.test.HelloGraphTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test__init__()[source]
test_build()[source]
test_format()[source]
test_full_integration()[source]

Module contents