Created
April 21, 2017 10:57
-
-
Save mizvol/c0a1a17970fb3e568350a2a9390d2512 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from graphframes import * | |
vertices = sqlContext.createDataFrame(userIds, ["id"]) | |
edges = sqlContext.createDataFrame(edgesList, ["src", "dst", "relationship"]) | |
g = GraphFrame(vertices, edges) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment