CreateCompleGraph using Symbolic Math Toolbox

1 visualización (últimos 30 días)
Kirti Patel
Kirti Patel el 22 de Mzo. de 2013
Respondida: Sage Beard el 23 de Mayo de 2020
I am working on Matlab 2012b. I have symbollic Math Toolbox. But when I try for
MuPAD Functions
Graph::createCircleGraph Generates a circle Graph Graph::createCompleteGraph Generates a complete graph Graph::createGraphFromMatrix Transfers a squared matrix into a directed graph Graph::createRandomEdgeWeights Sets random weights to edges Graph::createRandomEdgeCosts Sets random costs to edges Graph::createRandomGraph Generates a random graph. Graph::createRandomVertexWeights Sets random weights to vertices Graph::plotBipartiteGraph Plots a Graph in a bipartite layout Graph::plotCircleGraph Plots a Graph in a circle layout Graph::plotGridGraph Plots a Graph in a grid layout
Functions...It is not working.
Is there any other procedure to activate this functions ??
Please do let me know. I need graph theory for my research.
Thanks.

Respuestas (2)

Kechao
Kechao el 26 de Abr. de 2013
Editada: Kechao el 26 de Abr. de 2013
These functions should be only used in MuPad.
Please try typing MuPad in the Command Window. The MuPad notebook window would show up. You can try to use the code below:
G1 := Graph::createCircleGraph(4):
Graph::printGraphInformation(G1)
And type Enter, the results would like this:
Vertices: [1, 2, 3, 4]
Edges: [[1, 2], [2, 3], [3, 4], [4, 1]]
Vertex weights: no vertex weights.
Edge descriptions: no edge descriptions.
Edge weights: no edge weights.
Edge costs: no edge costs.
Adjacency list (out): 1 = [2], 2 = [3], 3 = [4], 4 = [1]
Adjacency list (in): 1 = [4], 2 = [1], 3 = [2], 4 = [3]
Graph is directed.

Sage Beard
Sage Beard el 23 de Mayo de 2020
People create the graph using a symbolic math toolbox that looks able graph. Many students of the college learn to create this from is college-paper.org legit and give class to others to teach them.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by