forked from addy1997/python-RRT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
40 lines (22 loc) · 702 Bytes
/
test.py
File metadata and controls
40 lines (22 loc) · 702 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
30
31
32
33
34
35
36
#!/usr/bin/env python
# coding: utf-8
# In[5]:
from digraph_generator import *
from DiGraph import Digraph
def test(graph):
vertices = specify_vertices(graph)
edges = specify_edges(graph)
Digraph = Digraph(vertices, edges)
print (Digraph)
Digraph.Adj_matrix()
sp = Digraph.dist("a", "d")
isolated = Digraph.isolated(maxD=1e309)
connected = Digraph.is_connected()
print(sp,"\n", isolated, "\n" ,connected)
def test_design(graph):
G = design_graph_object(graph, Digraph())
sp = G.dist("a", "d")
isolated = G.isolated(maxD=1e309)
connected = G.is_connected()
return sp, isolated, connected
# In[ ]: