## How do I Adjust the Position of a Weight Label Alo...

Hi,

I am generating several random weighted graphs using the following code:

with(GraphTheory):
with(RandomGraphs):
G:=RandomGraph(10,20,connected):
G1:=AssignEdgeWeights(G,5..25):
DrawGraph(G1,showlabels=true,stylesheet=[edgecolor=blue,weightfont = [times,bold,11]])

By default weight labels appear to be positioned at the midpoint of each edge. Is there a way to change that positioning?

Thanks!

## Any twin command for "timelimit", but about memory...

The `timelimit` command of Maple can be used to do a computation if it uses less than a given amount of time, otherwise generating an error message that can be cought by `try ... catch`. Now my question is that there exists any similar command, but with a limitation on memory usage, not the time usage. I don't mean what `datalimit` in `kernelopts` can does, because I am not going to limit the memory usage of the whole Maple session, but just a command which may be used inside a larger procedure etc.

## How do I graph this forced spring mass system?...

My forced spring mass system is 4x"+4x'+3x=sin(wt). I calculated my w=w* value that maximizes the amplitude (0.5) and my initial conditions are x(0)=x'(0)=0. I need to graph x(t) when w= w* and when w=w*/2. How am I supposed to input this information into maple to create a graph?

## Finding the Real part of Complex Expression...

One of our users asks how they can find the `Re ( sqrt(a+I*b))` where a, b are real.

They had tried entering the latter as "assume", without any luck.

We told them that it may not be very intuitive, but such expressions can be evaluated by wrapping into evalc which implicitly assumes that free parameters are real-valued:

`evalc(Re(sqrt(a+I*b)));`

## Affinity matrix...

How is the matrix of the affinity of base the plan of equation x+2*y-z=1, of direction u <1,0,-1>and of ratio 2 determined? Thank you.

## Maple 2021 warns implicit local variable in "seq"...

I used to have this kind of code without problem:

```myModule := module()     option package;     export myFunc;     # local i;     myFunc := proc()         [seq(i, i in 1..10)]     end proc; end module;```

`Warning, (in myModule:-myFunc) `i` is implicitly declared local |myModule.mpl:5|`

I have to uncomment the `local i` declaration for the warning to go away. Has the behavior of `seq` changed in Maple 2021?

## Does CommunityGraphPlot have a corresponding funct...

In mathematica, CommunityGraphPlot attempts to draw the vertices grouped into communities.

g = Graph[{1 \[UndirectedEdge] 2, 2 \[UndirectedEdge] 3,
3 \[UndirectedEdge] 4, 1 \[UndirectedEdge] 4,
1 \[UndirectedEdge] 5, 5 \[UndirectedEdge] 6,
5 \[UndirectedEdge] 7, 7 \[UndirectedEdge] 8,
8 \[UndirectedEdge] 9, 7 \[UndirectedEdge] 9},
VertexLabels -> "Name"];
ged = {{6, 7, 8, 9}, {5}, {1, 2, 3, 4}};# Gallai-Edmonds decomposition
CommunityGraphPlot[
HighlightGraph[g, FindIndependentEdgeSet[g],
GraphHighlightStyle -> "Thick"],
Thread[Labeled[ged, {"D(g)", "A(g)", "C(g)"}]], PlotTheme -> "Web"]

This function is very useful, for example, if I get a partition of vertices, such as the gallai-Edmonds decomposition below, I use  CommunityGraphPlot to easily see the overall layout of the graph. I don't know if Maple has a corresponding function.

PS: The Gallai-Edmonds decomposition of a graph g is the partition {D(g),A(g),C(g)} of its vertices, where D(g) consists of every vertex v for which there exists a maximum matching of g that misses v, A(g) consists of every vertex v that is not in D(g) but neighbors some vertex in D(g) and C(g) consists of all remaining vertices.

## Same problem as last year for upgrading thr Physic...

Hello,

I encounter the same error for upgrading the physics package

which was never solved for Maple 2020 !

See the screenshot.

This is again a problem of permission.

Best

Hi I have experienced another Maple 2021 error with those of my students who Maple 2021 Mac edition.

Lets say their have saved a .mw on their main drive and tries to open the file from inside Maple. Maple gives an error like "file cannot be opened - please try to another". This also happens when trying to open the file from outside Maple.

This never happens on the Windows version. So any idea what could be causing this ?

## Why is Maple incorrectly simplifying my expression...

I have the following expression.

Maple will evaluate this to:

Screenshot:

Plotting these two in 2D on Desmos to demonstrate: https://www.desmos.com/calculator/tvp4rbzxzp

These two are not the same expression. Is Maple broken or am I doing something wrong?

## Interactive and stylesheet conflict...

When I was drawing a plane graph, I found that the labels  of vertices were not displayed  and some edges even overlap when drawing because they were too close due to embedding.

restart:
with(GraphTheory):
g:=ConvertGraph("GsaCB{");

So I thought that  option  Interactive  can adjust the position manually, but  at the same time I found that the style of  edges, such as the color and thickness, etc., is lost.  How to handle it? Is this a bug?

restart:
with(GraphTheory):
g:=ConvertGraph("GsaCB{");

## Style management: properties not selectable...

Maple 2021.1 screen shot: property box too small to select properties

how it should look like

How do I get it back to normal?

Thank you

## Webscrapping: Importing text in HTML file / webpag...

On virtually any webpage is a mixture of images and text. I can go to the page, select all contents, copy the contents into an Excel spreadsheet, save the spreadsheet file and then use the ExcelTools:-Import function to read the file into a DataFrame. At that point, I can work with the data.   All the text on the webpage, even if it is embedded in some HTML command, is copied as text into the spreadsheet which eventually can be read as text by Maple.

My quesiton is, what is the method for me to bypass Excel and import the webpage directly into Maple, striped of the HTML code? Can someone point me to an example? (The only examples I have seen use the Sockets package, but I thought this mode has been superceded with Import.)

## Dirac delta function...

Can you use the Dirac function in different coordinate systems?

## How to deal with Corrupt Maple worksheets?...

Hi,

I have had trouble with a  .mw worksheet..which I will attach.(I am using Maple 2021)..This is second time it got corrupted..I used the

"CompleteMiniCourseComputerAlgebraPhysics" and copy parts to worksheets so I can work the problems and I do

Alot of markups and highlighting as well as add coments a copy as Text from help on certain commands..

I read some other posts that discuss corrupt file thats use XML I think in the worksheet....I checked this in the area I was working and did not find anything (I completed about half of the course saving as I went and had no problems)....so any guidance would be appreciated..

Frank McFee

 1 2 3 4 5 6 7 Last Page 3 of 31
﻿