English 中文(简体)
划入树图的斜体清单
原标题:Convert nested list into tree picture

我有一份由JSON/Pythonnes的名单,这份清单代表了树木,每件物品都是 no子,如果是 list子,就是一个子树。

如何从中找到一些令人愉快的图表?

[[1, [[4, [[7], [8], [9]]], [5, [[7], [8], [9]]], [6, [[7], [8], [9]]]]], [2, [[4, [[7], [8], [9]]], [5, [[7], [8], [9]]], [6, [[7], [8], [9]]]]], [3, [[4, [[7], [8], [9]]], [5, [[7], [8], [9]]], [6, [[7], [8], [9]]]]]]

这是JSON本身的细线,对我不甚帮助。

最佳回答

You could look into GraphViz for making basic graph images using its simple dot notation. Then in python you could make a really simple recursive function that generates the dot file and builds the graph.

问题回答

暂无回答




相关问题
Advanced visualization options for ASP.NET

I m looking for ways to present statistical information in my ASP.NET web application. Ease of use is not a priority: I have tried "Microsoft Chart Controls for Microsoft .NET Framework 3.5" and would ...

Flipping the Y axis in vtk

Is there a way that I can make VTK have the Y axis go down (when increasing values) rather than up? I d like my VTK windows to match my non-VTK windows in displaying data, which all have the Y axis ...

Introduction to Java Graphics Libraries

I just got into information-visualization and scientific-visualization and have been using Piccolo and a little with JFreeChart. I am trying to find a few new libraries that I can start using. I am ...

Mersenne Twister: seeding & visualization

I am using a C# implementation of Mersenne Twister I downloaded from CenterSpace. I have two problems with it: No matter how I seed the algorithm it does not pass DieHard tests, and by that I mean I ...

Real-time audio visualisation in Cocoa? [closed]

Are there any frameworks or open-source code that would simplify the process of implementing a real-time oscilloscope (time-domain audio visualisation) in OSX? Ideally, I want to display a simple ...

热门标签