-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTest.py
More file actions
30 lines (23 loc) · 786 Bytes
/
Test.py
File metadata and controls
30 lines (23 loc) · 786 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
'''
Created on 27.05.2019
@author: florian
'''
from ReadGraphs.GraphDataToGraphList import *
def main():
path = "/home/florian/Dokumente/Databases/GraphData/DS_all/"
db = "MUTAG"
gen = graph_data_generator(path, db)
while True:
graph_data = next(gen)
print(type(graph_data))
graph, graph_label, graph_attribute = graph_data
draw_graph(graph)
print(nodes_label_matrix(graph))
print(type(nodes_label_matrix(graph)))
#print(nodes_label_coding_matrix(graph, 50, False))
print(edges_attribute_matrix(graph))
print(edges_label_coding_matrix(graph, 5, False))
print(has_node_labels(graph))
print(node_attribute_dimension(graph))
if __name__ == '__main__':
main()