Skip to content

ERROR: ArgumentError: row indices I[k] must satisfy 1 <= I[k] <= m #30

@f-amerehi

Description

@f-amerehi

Hi all,

When I want to create a graph out of an excel file, the Julia returns an Error ArgumentError: row indices I[k] must satisfy 1 <= I[k] <= m


Net_data_file = "C:/Data/Network.csv"
Net_df        = CSV.read(joinpath(Net_data_file), DataFrames.DataFrame)

start_node = Net_df.from
end_node   = Net_df.tos
distance   = Net_df.distance
time       = Net_df.speed

g = SimpleWeightedDiGraph(start_node, end_node, distance)

Is there any command that would fix it?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions