Very surprise to me.I found this is a built-in function but it is undocumented.Such as this answer's "CurvedArc" and "Curvature",this answer's "EdgeShapeFunction",this answer's "GraphHighlightStyle" and so on.I confuse these friend how to find these parameter.Anyone can give a method to find those parameters and other?
Asked
Active
Viewed 377 times
6
-
2Undocumented options / functions have been discussed extensively on this site, e.g. What are some useful, undocumented Mathematica functions?, and Is using undocumented functionality a Bad Idea™?. A search for "undocumented" in this site will return many such examples. There are no obvious methods to find undocumented functionality, but hunting for them is certainly fun! – MarcoB May 29 '16 at 03:30
-
1@MarcoB I'm not sure if we can call it undocumented. It is mentioned in many documentation pages, but it doesn't have its own page or usage message! – Szabolcs Aug 18 '16 at 13:22
1 Answers
9
After some digging, I found this symbol is related to the undocumented GraphComputation`GraphElementDataDump`RawNetworkGraphData.You can find the usages you mentioned and much more by typing the code:
Needs["GeneralUtilities`"]
PrintDefinitions[GraphComputation`GraphElementDataDump`RawNetworkGraphData]
Here is preview of a portion of definitions, you can follow the links inside to trace function calls.

FYI, the process of my digging is actually simple, just turn on the undocumented option: TraceInternal->True in Trace or TracePrint, and you can find out more about its evaluation.
If MMA returns an empty notebook
You have to evaluate GraphElementData["EdgeShapeFunction"] first, or the definitions won't load and the page will be blank.
If PrintDefinitions says too many definitions
This will happen in version before 10.4. In this case you can use Information.
-
-
-
-
-
@happyfish Thanks, in V10.3.1,
PrintDefinitions[GraphComputation`GraphElementDataDump`RawNetworkGraphData]return a empty notebook – xyz May 29 '16 at 09:06 -
@ShutaoTANG this will work:
Needs["GeneralUtilities`"]; GraphElementData["EdgeShapeFunction"]; ?? GraphComputation`GraphElementDataDump`RawNetworkGraphData– vapor May 29 '16 at 09:12