6

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?

yode
  • 26,686
  • 4
  • 62
  • 167

1 Answers1

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. enter image description here

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.

vapor
  • 7,911
  • 2
  • 22
  • 55