Best Way to Store/Access a Directed Graph

后端 未结 6 750
清酒与你
清酒与你 2021-02-01 09:14

I have around 3500 flood control facilities that I would like to represent as a network to determine flow paths (essentially a directed graph). I\'m currently using SqlServer an

6条回答
  •  孤独总比滥情好
    2021-02-01 09:35

    Traditionally graphs are either represented by a matrix or a vector. The matrix takes more space, but is easier to process(3500x3500 entries in your case); the vector takes less space(3500 entries, each have a list of who they connect to).

    Does that help you?

提交回复
热议问题