更改

删除27字节 、 2020年8月28日 (五) 19:50
第20行: 第20行:     
==Implementation details==
 
==Implementation details==
构建邻接表细节
+
实施细则
 
{| class = "wikitable" align="right" style="width:18em;"
 
{| class = "wikitable" align="right" style="width:18em;"
   第81行: 第81行:  
An adjacency list representation for a graph associates each vertex in the graph with the collection of its neighboring vertices or edges. There are many variations of this basic idea, differing in the details of how they implement the association between vertices and collections, in how they implement the collections, in whether they include both vertices and edges or only vertices as first class objects, and in what kinds of objects are used to represent the vertices and edges.
 
An adjacency list representation for a graph associates each vertex in the graph with the collection of its neighboring vertices or edges. There are many variations of this basic idea, differing in the details of how they implement the association between vertices and collections, in how they implement the collections, in whether they include both vertices and edges or only vertices as first class objects, and in what kinds of objects are used to represent the vertices and edges.
   −
图的邻接表示法将图中的每个顶点与其邻接顶点或边的集合关联起来。这个基本思想有许多变体,在它们如何实现顶点和集合之间的关联,在它们如何实现集合,在它们是否包括顶点和边还是只包括顶点作为第一类对象,以及在什么类型的对象被用来表示顶点和边的细节上有所不同。
+
图的邻接表示法将图中的每个顶点与其邻接顶点或边的集合关联起来。这个基本思想有许多变体,在如何实现顶点和集合之间的关联,如何实现集合,以及是否包括顶点和边还是只包括顶点作为第一类对象,以及什么类型的对象被用来表示顶点和边的细节上都有所不同。
    
* An implementation suggested by [[Guido van Rossum]] uses a [[hash table]] to associate each vertex in a graph with an [[array data structure|array]] of adjacent vertices. In this representation, a vertex may be represented by any hashable object. There is no explicit representation of edges as objects.<ref>{{cite web
 
* An implementation suggested by [[Guido van Rossum]] uses a [[hash table]] to associate each vertex in a graph with an [[array data structure|array]] of adjacent vertices. In this representation, a vertex may be represented by any hashable object. There is no explicit representation of edges as objects.<ref>{{cite web
274

个编辑