Turned LoadEdgeData into a flexible Function