The datatype, order, shape and storage options were introduced in Maple 2021.įor more information on Maple 2021 changes, see Updates in Maple 2021. The L parameter was introduced in Maple 2021. The GraphTheory command was updated in Maple 2021. H ≔ Graph 2: a directed graph with 4 vertices and 4 arc(s) G ≔ Graph 1: an undirected graph with 4 vertices and 4 edge(s)Ģ, 4, 1, 3, 2, 4, 1, 3 If G is directed: storage=rectangular, shape= If G is undirected: shape=symmetric, storage=triangular , If G is directed or undirected: datatype=anything and order=C_order The default output is an n by n Matrix with the following properties: The default behavior corresponds to specifying the list. If specified, the generated matrix has the following properties:Ī = L when there is an edge from i to j in GĪ = L when there is no edge from i to j in G The optional parameter L is a list of three elements specifying alternate special-purpose values for the entries of the adjacency matrix. The entry i, j of this matrix is 1 if there is an edge from vertex i to vertex j and 0 otherwise. For a directed graph, if there is an edge that exists between vertex i to Vertex j, then the value of A i j 1. The following post will show you how an adjacency matrix. An adjacency matrix is a matrix that contains rows and columns which represent a graph with the numbers 0 and 1 in the position of A i j, according to the condition of whether or not the two vertexes i and j are adjacent. The AdjacencyMatrix command returns the adjacency matrix of a graph G whose rows and columns are indexed by the vertices. An Adjacency Matrix is a graph that is a matrix of rows and columns that include the vertices. The default is storage=sparse if the number of edges is much smaller than the square of the number of vertices otherwise, it is storage=triangular if G is undirected and storage=rectangular if G is directed. The default is shape=symmetric if G is undirected and shape= if G is directed. Must be a name or list of names specifying one or more built-in or user-defined indexing functions. Specifies the storage allocation for Matrix entries. Specifies the order of the generated Matrix. Specifies a datatype for the generated Matrix as described in rtable. (optional) one or more options as specified below Values for adjacent, nonadjacent, and diagonal entries
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |