Skip to content

Commit 84225d1

Browse files
committed
Update path referencing
1 parent 9e31ce0 commit 84225d1

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

src/graph/graph_representation.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ def _get_values(data, start_tag, end_tag):
160160
return values
161161

162162

163-
###### Testing ######
164-
graph = GraphRepresentation.build_graph(r"path to xml file")
165-
print(graph.adjacency_list)
166-
print(graph.connections)
167-
# print(graph.get_user_connections(5))
163+
# ###### Testing ######
164+
# graph = GraphRepresentation.build_graph(r"path to xml file")
165+
# print(graph.adjacency_list)
166+
# print(graph.connections)
167+
# # print(graph.get_user_connections(5))

src/graph/network_analysis.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from graph_representation import GraphRepresentation as Graph
2-
import heapq
1+
from src.graph.graph_representation import GraphRepresentation as Graph
32

43
class NetworkAnalysis:
54
def __init__(self, graph_rep: Graph):
@@ -89,7 +88,7 @@ def get_suggested_users(self, user_id):
8988

9089

9190
## Test items
92-
graph = Graph.build_graph(r"path/to/xml/file")
93-
net_analysis = NetworkAnalysis(graph)
94-
print(net_analysis.get_most_active_user())
95-
print(net_analysis.get_most_influencer_user())
91+
# graph = Graph.build_graph(r"path/to/xml/file")
92+
# net_analysis = NetworkAnalysis(graph)
93+
# print(net_analysis.get_most_active_user())
94+
# print(net_analysis.get_most_influencer_user())

0 commit comments

Comments
 (0)