Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Let's say I have a table of words, and each word has a "related words" column. In practice, this would probably be two tables with a one-to-many relationship, as each word can have more than one "related words" columns, but for simplicity, say it looks like this:

Word      | Related words
------------------------------------------------------
integer   | fraction, entire, integral ...
entire    | entirely, integer ...
fraction  | fractious, fractional, integer ...
fractious | fraction, -ous ...
-ous      | ambidextrous, advantageous, atrocious ...

And so on. I want to create a graph which shows how all of the words interlink, based on the relationships I've described in this table.

I've found an online tool which does exactly what I want, and used it to produce an example:

enter image description here

Is there a Python module which can be used to produce this sort of graph? I'm not too sure what this kind of graph is called, so I'm not sure how to research this question. I'd appreciate any pointers, or advice on how I can clarify and improve this question if needed.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
156 views
Welcome To Ask or Share your Answers For Others

1 Answer

NetworkX is a Python package for the creation, manipulation of complex graph networks. It also supports interfacing with Matplotlib package for drawing the graphs.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...