Skip to content

Commit 075ec63

Browse files
authored
Merge pull request #8 from JuliaGraphs/sbromberger/1.0
works on Julia 0.7
2 parents 9f74097 + 14c365d commit 075ec63

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ os:
44
- linux
55
# - osx
66
julia:
7-
- 0.6
7+
- 1.0
88
- nightly
99
notifications:
1010
email: false

REQUIRE

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
julia 0.6
2-
LightGraphs 0.11
3-
MetaGraphs 0.2
4-
DataFrames 0.11
1+
julia 0.7
2+
LightGraphs 1.0
3+
DataFrames 0.13
4+
MetaGraphs
5+

src/GraphDataFrameBridge.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module GraphDataFrameBridge
22
using LightGraphs
33
using MetaGraphs
4-
using JLD2
54
using DataFrames
65
export MetaGraph, MetaDiGraph
76

@@ -94,7 +93,7 @@ function metagraph_from_dataframe(graph_type,
9493
sort!(nodes)
9594

9695
vertex_names = DataFrame(Dict(:name => nodes))
97-
vertex_names[:vertex_id] = 1:nrow(vertex_names)
96+
vertex_names[:vertex_id] = Base.OneTo(nrow(vertex_names))
9897

9998
# Merge in to original
10099
for c in [origin, destination]

test/graphdataframebridge.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
importall GraphDataFrameBridge
2-
31
@testset "GraphDataFrameBridge" begin
42

53
# Test data from constructor

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
using LightGraphs
22
using MetaGraphs
33
using DataFrames
4-
using Base.Test
4+
using GraphDataFrameBridge
5+
using Test
56

67
import LightGraphs.SimpleGraphs: SimpleGraph, SimpleDiGraph
78
testdir = dirname(@__FILE__)

0 commit comments

Comments
 (0)