Big talk data structure 22: An array of edge sets for the storage structure of graphs

Source: Internet
Author: User

1. Introduction to the Edge set array:

An array of side sets is composed of two one-dimensional arrays:

1.) A storage vertex information.

2.) A storage edge of the information, the edge of the array of each data element by a side of the beginning of the subscript (begin), end of the subscript (ends), Hequan (weight) composition.

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Programming/sjjg/

2. Edge set Array suitable scenario:

An array of edge sets is concerned with the collection of edges, and the degree of finding a vertex in an array of edge sets needs to scan the entire array of edges, which is not efficient.

It is therefore better suited for operations that are processed in sequence, rather than for vertex-related operations.

Author: csdn Blog zdp072

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.