antvis/G6
The issue has been closed
Remove Tree Support #5323
Aarebecca posted onGitHub
As we know, a tree is a special unidirectional acyclic graph, Therefore, any graph that satisfies this structure can be displayed as the structure of a tree.
It is not a good way to handle trees alone, and G6 will only support the standard Graph structure data stored in JSON and remove support for tree data.
To convert a tree data to graph data, you can use this method:
import { transformTreeData } from '@antv/g6-utils';
const treeData = {
id: 'id1',
children: [
// ...
]
};
const graphData = transformTreeData(oldData);