Skip to content

Instantly share code, notes, and snippets.

@davibarreira
Last active September 26, 2022 08:32
Show Gist options
  • Save davibarreira/fd5983f9a81aee3ceb0909370eeb7995 to your computer and use it in GitHub Desktop.
Save davibarreira/fd5983f9a81aee3ceb0909370eeb7995 to your computer and use it in GitHub Desktop.
Importing Data and Creating Graph
using GraphPlot, SimpleWeightedGraphs, LinearAlgebra, DataFrames, Random, CSV, Colors
Random.seed!(7)
df = DataFrame(rand([0,1],10,20),:auto);
g = SimpleWeightedGraph(ncol(df))
@davidavdav
Copy link

I really believe code gets better readable by always adding a space after a comma, i.e., here

df = DataFrame(rand([0, 1], 10, 20), :auto);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment