output doc-topics in graph format