D
D
Diman7662019-11-21 23:07:37
macOS
Diman766, 2019-11-21 23:07:37

How to render graph in Swift for MacOs application?

You need to visualize a graph by an adjacency matrix in Swift. Several options:
1) Use any library. But I couldn't find it, can anyone tell me if there is such a thing.
2) For Python, there is a GraphViz library for visualization. You can write a python script and call it from swift code. Or use some wrapper to connect this library to Swift.
3) Connect some library from Obj-C?
4) Draw the graph myself, but I'm not familiar with Swift graphics at all, maybe someone can tell me where to find a good lesson and an algorithm for vertex location.
Which of these options would be preferable? And how to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
briahas, 2019-11-28
@briahas

Here is a website with UI elements: CocoaControls

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question