Question: Trying to write a function to get based with distance on weighted graph

Looking to write a function f which takes a weighted graph g and returns values with are distance based

Kind help please your help will be acknowleged


Please kind help

Looking for simple code

Please Wait...