interwiki_graph
— Graphviz Drawing for Interwiki#
Module with the Graphviz drawing calls.
- class interwiki_graph.GraphDrawer(subject)[source]#
Bases:
object
Graphviz (dot) code creator.
- Parameters:
subject (pywikibot.interwiki_graph.Subject) – page data to graph
:raises ImportError if pydot is not installed
- createGraph()[source]#
Create graph of the interwiki links.
For more info see https://meta.wikimedia.org/wiki/Interwiki_graphs
- Return type:
None
- class interwiki_graph.GraphSavingThread(graph, origin)[source]#
Bases:
Thread
Threaded graph renderer.
Rendering a graph can take extremely long. We use multithreading because of that.
TODO: Find out if several threads running in parallel can slow down the system too much. Consider adding a mechanism to kill a thread if it takes too long.
- Parameters:
graph (pydot.Dot) –
origin (pywikibot.page.Page) –