Mathematica Asked by Caitlin on January 13, 2021
I have seen other people run the following code:
MeshConnectivityGraph[DelaunayMesh[RandomPoint[Disk[], 1000]]]
To generate a planar network (working towards creating a model of larger human networks). I can’t get Mathematica to execute this code for me.
DelaunayMesh[RandomPoint[Disk[], 1000]]
returns an image of a mesh region.
Head @ DelaunayMesh[RandomPoint[Disk[], 1000]]
returns
MeshRegion
MeshConnectivityGraph
can’t seem to take this as an input and return a graph like the ones I see in the examples I’m looking at. It just returns MeshConnectivityGraph
wrapped around the image of the mesh region.
Examples of people successfully executing this command:
https://www.wolframcloud.com/obj/s.wolfram/Published/COVID-19-Livestream-March-24.nb
https://community.wolfram.com/groups/-/m/t/1907703
Any insight into why this doesn’t work for me, and what I can do to make it work would be very much appreciated. I’m using Mathematica 12.0.
If you look at the documentation for MeshConnectivityGraph
on the Wolfram website, you should see this in the upper right corner:
So that is why it doesn't do what you want in Mathematica 12.0. When I typed that expression into Mathematica on my machine (also running 12.0) it was highlighted in blue, indicating that Mathematica didn't recognize it as a defined symbol. To double check, I used Mathematica's built in help to search for it:
?MeshConnectivityGraph
Missing["UnknownSymbol", "MeshConnectivityGraph"]
This drove me to look online.
Correct answer by Pillsy on January 13, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP