R
R
Roman Pavlov2018-12-06 18:53:34
C++ / C#
Roman Pavlov, 2018-12-06 18:53:34

How to implement rendering of a prefix tree?

Good day.
There is a Node class that stores value - its value and child - a descendant (the same Node). Each element can have any number of children, or none at all. Initially, I take the root object, which stores a space (to indicate an empty element).
How to draw such a structure in Windows Forms so that the elements are at least in their places, and at best also connected by a strip?
0b97deb7a02cb8382ba096094351d792.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MrDywar Pichugin, 2018-12-06
@Dywar

1) TreeView https://metanit.com/sharp/windowsforms/4.13.php
2) Display as text - https://stackoverflow.com/questions/37803997/c-sha...

S
Sumor, 2018-12-06
@Sumor

Look for something called OrgChart.
For example, on WinForms
https://documentation.devexpress.com/WindowsForms/...
or on WPF
https://www.grapecity.com/en/controls/wpf/orgchart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question