## Checking whether there is cycle of odd length in a k-coloring undirected graph Also, what is the meaning of the notation used in the question- c: v->{0,1,2….k-1} such that c(u)!=c(v)?

## Plotting a graph of a square root function does not show the expected graph

Use `RealAbs` instead of `Abs` since `Abs` is a `Complex` function.
And the `Sqrt` is also a `Complex` function, sometimes we use `Surd` instead of `Sqrt` or `Power`

if we assume `x` is a real numbers,we can use `ComplexExpand` to observe the expression of `Abs(Sqrt(x - 1) + 5)`

``````Abs(Sqrt(x - 1) + 5) // ComplexExpand

(*  Sqrt((5 + ((-1 + x)^2)^(1/4) Cos(1/2 Arg(-1 + x)))^2 +
Sqrt((-1 + x)^2) Sin(1/2 Arg(-1 + x))^2) *)
``````

So we had to use another way.

``````Plot(RealAbs(Surd(x-1,2)+5),{x,-5,5},AxesOrigin -> {0, 0})
``````

## How to only show Monthly results in Google Sheets Graph

Im trying to make this graph to only show the monthly results, but the specified Dates are also showing on it and I fear I will end up with a clunky, ugly graph. Ive tried changing the data to B2,B8,B13… and so on, but as soon as I hit enter it says no data. So A2:B67 does show the data, but I don’t want it to show the whole thing. I’d appreciate your help, first timer in google sheets.

## graph theory – 1-dimensional quadratic placement with distances

in (1), Hall shows solution to the following graph optimization problem for a vector of node positions X, given a cost matrix C (normalizing the solution with the constraint ) by reducing it to where B is a positive semi-definite matrix of rank n – 1 (where n is the size of X), obtained from C (not important how).
Then he finds the solution as the first but minimal eigenvector of B.

I have a similar problem, where instead of forcing the adjacent vectors as close as possible to each other, I’d like to force them to be in the desired distance where D is a skew-symmetric matrix. I managed, similarly as in (1) (and hopefully correctly), to reduce the problem into where B is the same as in the original problem and U is a horizontal vector, obtained by adding up columns of a skew-symmetric matrix (for what it’s worth).

I wonder if this problem has been investigated before or whether the solution can be elegantly found using eigenvectors, similarly as for the first problem. By the way, I’m not keen on the quadratic metric in the problem definition, an absolute value or something similar is also good.

(1) Hall, Kenneth M. “An r-dimensional quadratic placement algorithm.” Management science 17.3 (1970): 219-229.

## The same outgoing and incoming degree in graph

I have an undirected graph with $$n$$ vertices and $$m$$ edges. How to determinate in $$poly (n, m)$$, is it possible (and how is it necessary) to orient all the edges so that each vertex has the same outgoing and
incoming degree.

## powershell – Microsoft Teams Migration using Graph API not able to maintain Teams/Channels tab ordering in destination

We are able to migrate the Teams and Channels tabs using Microsoft graph API.
But the issue is the tabs ordering is not maintain in the destination environment.

Could you help me to find the PowerShell script or Graph api, Using that the Teams tab ordering can be maintain in the destination environment.

## Partition of graph by paths

Let G be a non-null simple graph, and let k be the maximum size of a set of pairwise non-adjacent vertices in G. Show that there exist paths P1,P2,….,Pk in G such that (V(P1),V(P2),…..,V(Pk)) is a partition of V(G).

## algorithms – 3SAT and directed graph

Given a 3SAT instance (a Boolean expression in three conjunctural normal form), we draw a directed graph, where for each Boolean variable $$x_{i}$$ we have the nodes $$x_{i}$$ and $$!x_{i}$$; for each clause, for example $$left(x_{a} vee x_{b} vee x_{c}right)$$, we draw the following arrows $$!x_{a}x_{b}$$, $$!x_{a}x_{c}$$, $$!x_{b}x_{a}$$, $$!x_{b}x_{c}$$, $$!x_{c}x_{a}$$, $$!x_{c}x_{b}$$.

Is it possible understand from the graph if there is a variable $$x_{i}$$ such that $$x_{i}Leftrightarrow !x_{i}$$ ($$!x_{i}$$ is $$notleft(x_{i}right)$$)?

## sharepoint online – Get primary admin for SP site via Graph

At the beginning, I saw How to get Site Owner Via Graph but unfortunately, it’s not working as I would have expected.

I need to get primary admin for each and every site collection in my tenant. I need it to create a PowerApps app for my client to allow their employees to simply request access to SP sites in one place. I’ve already enumerated all sites, I have its SiteIDs, but the solution from the linked post is not working as expected. It’s showing email address of site owner, but only for Team sites with “Group Owners” as primary admin. If any SP site has an individual account set as admin – flow is not listing it.

Most important thing – I need to authenticate via Azure App API – I can’t authenticate by using any account, as I can’t grant access to every site to technical account.

Any ideas?

## algorithms – How to identify certain pathes in directed graph?

For the lack of a better way to explain my problem, I’ve drawn an example directed graph as you can see below. The edges are annotated with letters. What algorithm could achieve such an annotation?

My approach right now would first find all possible paths through the graph. Then, following every path, I would count how often each edge was visited. The number of visitations would then indicate the different sub graphs (A-D). But this would already stop working for a symmetric graph. 