prg_djk_edge_weight_set()

Abstract

Sets the weight of an edge in a graph

Syntax

prg_djk_edge_weight_set (edge_ptr, weight)
Argument Type Description
edge_ptr PrgT_Graph_Edge * The edge of interest.
weight double The weight that is going to be set on the edge.

Return Type

PrgT_Compcode

PrgC_Compcode_Success if the operation succeeds; PrgC_Compcode_Failure otherwise.

prg_djk.h

Details

Given an edge in the graph, the function sets the weight of the edge. The weight is used in the computation of the shortest path between vertices in the graph.

The cost to traverse an edge will be equal to the weight that is set on the edge.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com