Page Graph Links From HERE

Drawing the pages this page links to.

See Step-By-Step Page Graph for the table of contents. ---

A Page Graph factory can search for Internal Links on this very page and draw them like this:

DOT strict digraph rankdir=LR node [style=filled fillcolor=lightyellow penwidth=3 color=black fontname="Helvetica"] HERE NODE node [fillcolor=white] LINKS HERE -> NODE STATIC strict digraph {rankdir=LR node [style=filled fillcolor=lightyellow penwidth=3 color=black fontname="Helvetica"] "Page Graph Links From HERE" node [style=filled fillcolor=white penwidth=3 color=black] "Page Graph Links From HERE" -> "Step-By-Step Page Graph" "Page Graph Links From HERE" -> "Page Graph" "Page Graph Links From HERE" -> "Internal Links" "Page Graph Links From HERE" -> "Page Graph HERE Node" "Page Graph Links From HERE" -> "Internal Links" "Page Graph Links From HERE" -> "How Page Graphs Work" }

The factory scanned this page and saw five internal links. It therefore knew to draw edges to nodes labeled with the appropriate titles.

Here are the non-boilerplate commands for that graph.

node [style=filled fillcolor=lightyellow penwidth=3 color=black fontname="Helvetica"] HERE NODE node [fillcolor=white] LINKS HERE -> NODE

The first two lines are the same as in Page Graph HERE Node.

The third line changes the default styling of a node to be white-filled. Any further nodes will be drawn that way until the default is changed. (It's slightly more complicated than that; we'll get to that later.)

Notice that the second `node` line only mentioned the style (`fillcolor`) it meant to override. The other styles still apply.

The real action is in `LINKS HERE -> NODE`.

As before, `HERE` refers to the page you're reading. `NODE` stands in for the destination of any internal `LINKS`. External links, like this one to the DOT documentation aren't included.

If you clicked on Internal Links, you'll see the page doesn't exist. That doesn't matter for graphing purposes. That is, the page graph factory doesn't actually follow the links.

Next: How Page Graphs Work

Site Owned by: marick