It looks like it's written in Java.
By my guess, it simply takes the first and last words of each sentence and treats them as nodes while everything inbetween is a directed edge. This is probably then passed into graphviz.
By my guess, it simply takes the first and last words of each sentence and treats them as nodes while everything inbetween is a directed edge. This is probably then passed into graphviz.
Example:
Fear -> Dark Side Fear -> Hate -> Suffering -- Dark Side
OR
Fear -> Dark Side Fear -> Hate Hate -> Suffering Suffering -- Dark Side