defined utility in graph and mathematical expression

define utility in graph and mathematical expression?

https://www.google.com/search?source=hp&ei=xS8yXZ_nLoPIsQWxlL_gBQ&q=utility+economics+definition&oq=utility+economis&gs_l=psy-ab.1.0.0i13l5j0i13i30l5.2378.12300..21105...1.0..0.197.1910.11j8......0....1..gws-wiz.....0..0i131j0.so1T2vPB7Hg

https://www.google.com/search?source=hp&ei=IDAyXajQKsGItQWNvaCoCQ&q=economics+utility+graph&oq=economics+utility+gra&gs_l=psy-ab.1.0.0i22i30.1719.15454..19908...1.0..0.344.2731.7j16j0j1......0....1..gws-wiz.....0..0i131j0.cr1JqP_EXEI

In graph theory, the term "utility" refers to a value assigned to each vertex or edge in a graph. It represents the usefulness, desirability, or importance of a particular element in the graph.

There are different ways to define utility in a graph, depending on the specific context and problem at hand. Here are a few common examples:

1. Weighted Graphs: In a weighted graph, each edge is assigned a numerical value called a weight. This weight can represent various factors such as distance, cost, time, or any other relevant measure. The weight of an edge can be considered as the utility of that edge in the graph.

2. Value Functions: In some cases, each vertex in the graph may have a value associated with it, which can represent its utility. A value function can be defined to assign a numerical value to each vertex based on certain criteria. For instance, in a social network graph, the value of a vertex could represent the influence or popularity of a person.

Mathematically, the utility of a graph element can be represented as a function. Let's consider the example of a weighted graph. If we have a graph G with vertices V and edges E, and each edge has a weight w, the utility of an edge e can be defined as u(e) = w(e). Similarly, the utility of a vertex v can be defined as u(v) = Σw(e), where e is an edge incident on v.

To calculate the utility of a particular element in a graph, you would need to know the specific criteria or values associated with each element, and then apply the appropriate mathematical expression or function to obtain the utility value.