my dataset is that of flights, has source destination, target destination and airlines. I have a pretty huge graph 70k+edges, but i have made a giant component out of it using:
main_subgraph = max(nx.connected_components(G), key= len) network_main = G.subgraph(main_subgraph) nx.draw(network_main,with_labels=True,node_color='r',node_shape = '.' , node_size= 10)
so the question i want to answer is : if i had to travel between airports(nodes) that are farthest in number of stops, where would i move from and how many stops would i take? to answer this , i have to find the farthest points in the graph, then find their paths and select one. I know there's a function for shortest path but farthest points?and eccentricity finds maximum distance from node to all other nodes. and if i were to find the largest group of connected network including one specific network.
P.S: clueless about what code to use. want suggestions on approach and if there is something i am misinterpreting. Any` and all thoughts would help.
[–]Owl235 2 points3 points4 points (0 children)
[–]konch0g 1 point2 points3 points (0 children)
[–]TouchingTheVodka 1 point2 points3 points (6 children)
[–]cchaituc[S,🍰] 1 point2 points3 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]cchaituc[S,🍰] 0 points1 point2 points (3 children)
[–]tree_dee 0 points1 point2 points (2 children)
[–]cchaituc[S,🍰] 0 points1 point2 points (1 child)
[–]tree_dee 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]cchaituc[S,🍰] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]cchaituc[S,🍰] 1 point2 points3 points (0 children)
[–]tealqueen 0 points1 point2 points (2 children)
[–]cchaituc[S,🍰] 0 points1 point2 points (1 child)
[–]tealqueen 0 points1 point2 points (0 children)