列表 第页
我使用下面的code,让我的当前位置。但我面临的问题是,它总是返回0.0的经度和纬度。我打开了手机上的GPS设置,并设置所有权限。不过还是我面对这一点。I am using the following code to get my current location. But the problem I am faci...阅读全文
我怎么能代替黑色位图用红色(或其他任何颜色)编程的机器人(忽略透明度)?我可以用一种颜色替换白色的位图了,但是它并不会自动加黑的工作。感谢您的帮助。How can I replace the black color in a bitmap with red (or any other color) programm...阅读全文
GoogleMap的默认情况下不提供事件在地图拖动开始和拖动停止。 I已经在这里报道这个问题。GoogleMap by default doesn't provide event for map drag start and drag stop. I have already reported that probl...阅读全文
我发现在 onPictureTaken 拯救了位图镜像关于y轴,顺时针旋转90度,即使相机preVIEW没有。这是上的运行2.3.6我的Nexus S。在我的Nexus 4运行具有4.2相同的程序已生成位图镜像绕y轴和顺时针方向旋转180度。I'm finding in onPictureTaken that the...阅读全文
我有1个圆形的ImageView,我希望把位图ImageView的内部。但是当我设置pssed COM $ P $位图图像总是矩形。请帮我圆的ImageView设置位图。I have 1 circular imageview and I want to place bitmap inside the imagev...阅读全文
我用两个的ListView 就像这样:
我开发一个应用程序,并运行Android 2.2设备上测试它。在我的code,我利用我检索使用BitmapFactory.de codeResource一个位图,而我能够通过调用 bitmap.setPixels()就可以了。当我测试这个运行Android 1.6朋友的设备上,我得到一个 IllegalStateExc...阅读全文
我需要一些澄清和inputts就在向图 Dijktra算法 VS 呼吸优先搜索,如果这是正确的I need some clarifications and inputts regarding Dijktra's algorithm vs breath first search in directed graphs,...阅读全文
我想找个固定长度的路径(假设在运行程序)的无向图。我用我的图的邻接矩阵。我试图用一些算法,如DFS或A *,但他们只返回的最短路径。 I would like to find path of fixed length (given while running the program) in undirected g...阅读全文
为了简单起见,假设我有图:○○P 2 O |○○○○○Ø| Ø| Ø○○○○○一○○○○在这我想用一个广度优先搜索从A的最短路径,位置指定的旅行至P |是禁区。我怎样才能达到这个结果呢?我一直看到用于查找某个位置(P在这种情况下)的广度优先搜索,但我还没有看到用来存储路径距离和计算最短的一个(也没有有效的方法,...阅读全文
由于最近2天,我试图找到一些逻辑计算graph.I最长路径知道我可以很容易找到它的DAG和在总体上是多项式时间algorithm.Formally,我想要实现启发式计算最长路径,morever,如果概率P被赋予与边缘是present图中,我们如何解决problem..help ... Since last 2 day...阅读全文
我似乎找到了一种算法,但我有麻烦理解它,我想知道如果你们知道算法的一般轮廓。I seem to have found an algorithm but am having trouble understanding it, I was wondering if any of you knew the generic...阅读全文
我的问题是关于检测是否存在一个周期。我不在乎发生的周期,但仅当存在一个周期。特别是,我工作的一个(最大)生成树算法的实现。我已经按降序排列的边缘,然后我挑选的时候一边,并把它放在集合图中边IFF它不会导致一个循环。 My question is concerned with DETECTING if there e...阅读全文
我用的矩阵 D 来present图。 D。(我)。(J)指的的距离我和Ĵ; v 表示在图中节点的数目。I use a matrix d to present a graph. d.(i).(j) means the distance between i and j; v denotes the number of...阅读全文
我有一个权有向重图的几个周期。随着的igraph 包集群功能,我可以得到节点属于强连通分量。但我需要形成一个周期的节点的路径/订单。 I have a weighted directed multigraph with a few cycles. With clusters function in igraph pa...阅读全文
可能重复: 的发现,图中的所有周期 有谁能够给我的教程,算法,...为检测周期图?can anybody give me tutorial,algorithm,... for detect cycles in graph ?我找到一些算法,并加以实施,但没有检测到所有周期i find several algo...阅读全文
我在哪里路径存储在JSON数组就像一个有向图。它是在源和目的地的形式瓦尔pathDirection = [{源代码:2,目标:3},{源代码:3,目标:4},{源:5,目标:4},{源代码:2,目标:5},{源代码:4,目标:6}]。使用上面形成如下图所示的结构图。我的问题是我不知道的出发点,我必须找到从任何节...阅读全文
我有以下问题。我有循环,无向,加权图G =(V,E)。我需要根据这些规则,找到简单的路径(无环)两个给定节点之间:I have the following problem. I have cyclic, undirected, weighted graph G=(V,E). I need to find the si...阅读全文
我有一个曲线图重新psented与邻接表和父阵列psented他MST重新$ P $ $ P $。I have a graph represented with adjacency lists and his MST represented by parent array.我的问题是,我需要删除图形和更新父阵列的优...阅读全文
一个母亲顶点有向图G =(V,E)是一个顶点v的所有其他顶点g的由V A向路径到达举一个O(N + M)算法来检测图G是否包含一个母亲的顶点。A mother vertex in a directed graph G = (V,E) is a vertex v such that all othervertic...阅读全文
所以,我读罗伯特·塞奇威克的算法第4版。书和方法用于查找一个循环有向图比所述一个查找周期在无向图中不同的So I'm reading Robert Sedgewick's Algorithms 4th ed. book and the methods for finding a cycle in a directed...阅读全文
我必须做出一个不知情的搜索(广度优先搜索)程序,它有两个节点,并返回它们之间的所有路径。 I have to make an uninformed search (Breadth-first-Search) program which takes two nodes and return all the paths...阅读全文
我写一个类的位图打印通过单声道中的Android便携式蓝牙打印机为Android。我的类用于从流中获得的像素数据,以便它可以被发送到打印机以正确的格式。眼下类是简单的,它只是每个像素中读取的高度,宽度和位I am writing a class for printing bitmaps to a portable...阅读全文
什么是一个有效的算法,用于计算无向图三角形的数量)(其中一个图是一组顶点和边)?我一直在寻找谷歌,并通过我的教科书的书架阅读了几个小时,在连续三天时间一天。 What is an efficient algorithm for counting the number of triangles in an undire...阅读全文
我需要帮助寻找在的加权无向图中两个节点之间的所有最短路径的。 I need help finding all the shortest paths between two nodes in an unweighted undirected graph. 我能找到的使用BFS的最短路径之一,但到目前为止,我迷路了...阅读全文
我怎样才能找到(遍历)所有有向图的周期从/给定节点?How can I find (iterate over) ALL the cycles in a directed graph from/to a given node?例如,我想是这样的:A->B->AA->B->C->A而不是:B-> C-> B bu...阅读全文
我得到蝙蝠柱状图像下面。I get bat barchart as like below.我用低于code吧。public void createBarChart(String loanName1,String loanName2){XYSeries loan1Series = new XYSeries(loanN...阅读全文
自从升级 Eclipse(Galileo build 20090920-1017)后,在调试中悬停不再显示变量的值.相反,hover 的行为就像我处于正常的 Java 视角一样:Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug...阅读全文
我想创建一个线段或矩形的交互式图形,这样当用户将鼠标悬停在其上时,每个线段或矩形都会提供不同的信息.我查看了 无需额外代码即可处理大量柱状图:set.seed(123)n %hc_legend(enabled = FALSE) # 在这个上禁用图例I want to create an interactive figu...阅读全文
我成功地使用显示achart engine.I要根据预先屏幕size.Thanks定制我的标签文字大小饼图。 I am successfully displaying pie chart using achart engine.I want to customize my labels text size accor...阅读全文
现在我正在做这需要绘制多个饼图文字的项目。谁能给我一些想法,我用一个ListView或循环的TextView来实现这一目标。而且,我怎么能有一个活动的多个画布。Now I'm doing a project which need draw multiple pie charts with text. Can anyo...阅读全文
我米试图设置圆环图内圆半径和aChartengine outter圆半径,下面是我的code:I m trying to set doughnut chart inner circle radius and outter circle radius in aChartengine, below is my code...阅读全文
Good evening , I want to draw a horizontal line on a graph Bar Chart using Chart.js .I read the question Chart.js - draw horizontal line and I could not draw th...阅读全文
我使用的是chart.js 2.5.0 版,需要知道是否有任何方法可以隐藏分组堆叠条形图中每个组的空条?图表数据集中的某些数据值可以为空.这就是我想要的:请查看您修改后的代码,看看它是如何工作的.var options = {响应式:真实,保持纵横比:假,工具提示:{模式:'标签',回调:{标签:功能(工具提示项,数据...阅读全文
I have a Pareto chart (using Chart.js Version: 2.0.2) and i need to display values inside of the bars and under the line.Any help will be very appreciated:This...阅读全文
我需要在折线图中绘制单个值.目前我正在使用charts.JS 库进行折线图.I need to plot a single value in line chart. Currently i am using charts.JS library for line graph purpose.数据有时会发生变化,我会在...阅读全文
关于这个主题有很多答案(在 chart.js 中的条形顶部显示值),但这都是关于版本 2.xThere is a thread with many answers on this topic (Show values on top of bars in chart.js), but it's all about ve...阅读全文
我有以下使用 chart.js 的折线图示例.我要展示:I have the following example of line chart using chart.js. I want to show:图例和指针光标悬停标签在线悬停显示所有标签数据var line_chart = new Chart(docume...阅读全文