not yet
short notes about the codes that i forgot
- Visualisation of Label
left: nx.draw(G, with_labels=True) right: nx.draw(G, with_labels=False)
- Generating Path Graph Path Graph: a path graph $P_n$ is a tree with two nodes of vertex degree 1, and the other n-2 nodes of vertex degree 2. Simply saying, in $P_n,$ all $n$ vertices lie in a straight line.
The example above is $P_2, P_3, P_4$ and $P_5$ from left to right. For $P_n$ we used code nx.path_graph(n) to generate it.
- Page Rank
A simple analogy to explain the page rank is surfer in the web that moves from one page to the other. Then, page rank of any page is roughly the probability that the random surfer will land on a particular page. Since more links go to the important pages, the surfer is more likely to end up there.
Reference
Enjoy Reading This Article?
Here are some more articles you might like to read next: